#include "syscall.h"
#include "asm.h"

int syscall(int num, int arg1, int arg2, int arg3) {
	
	return (*sys_call_table[num])(arg1, arg2, arg3);
	
}

void init_syscall_table() {
	sys_call_table[READ] = &sys_read;
	sys_call_table[WRITE] = &sys_write;
	sys_call_table[EXIT] = &sys_exit;

	//install syscall interrupt
}